const apply = [
    {
        label: '应聘信息',
        key: '1'
    },
    {
        label: '面试安排',
        key: '2'
    }
];

const ing = [
    {
        label: '应聘信息',
        key: '1'
    },
    {
        label: '面试安排',
        key: '2'
    },
    {
        label: '面试结果',
        key: '3'
    },
    {
        label: '面试记录',
        key: '4'
    }
];

/**
 * type 类型
 * pathName 路径
 * identity 身份
 * name 名字
 * disable 输入框
 */

const identityMap = [
    {
        type: 'type0',
        identity: 'apply',
        name: '我发起',
        disable: false,
        planDisable: false,
        conclusionDisable: true,
        isOffer: false,
        tabs: apply
    },
    {
        type: 'type1',
        identity: 'apply',
        name: '我发起-修改面试安排',
        disable: true,
        planDisable: true,
        conclusionDisable: true,
        isOffer: false,
        tabs: apply
    },
    {
        type: 'type3',
        identity: 'ing',
        name: '我发起-查看详情',
        disable: true,
        planDisable: true,
        conclusionDisable: true,
        isOffer: true,
        tabs: ing
    },
    {
        type: 'type2',
        identity: 'ing',
        name: '我进行的面试-填写面试结果',
        disable: true,
        planDisable: true,
        conclusionDisable: false,
        isOffer: false,
        tabs: ing
    },
    {
        type: 'type4',
        identity: 'ing',
        name: '我进行的面试-查看详情',
        disable: true,
        planDisable: true,
        conclusionDisable: true,
        isOffer: false,
        tabs: ing
    }
];

const findIdentity = type => identityMap.find(V => type === V.type) || {};
// eslint-disable-next-line import/prefer-default-export
export { findIdentity };
